# To change this template, choose Tools | Templates
# and open the template in the editor.

class Job_title
  JobOption = Struct.new(:id,:name)
  class JobType
    attr_reader :type_name,:options
    def initialize(name)
      @type_name=name
      @options=[]
    end
    def <<(option)
      @options << option
    end
  end

  jobs01 = JobType.new("军事主官")
  jobs01 << JobOption.new("101","主席")
  jobs01 << JobOption.new("102","副主席")
  jobs01 << JobOption.new("103","总参谋长")
  jobs01 << JobOption.new("104","副总参谋长")
  jobs01 << JobOption.new("105","总参谋长助理")
  jobs01 << JobOption.new("106","司令员")
  jobs01 << JobOption.new("107","副司令员")
  jobs01 << JobOption.new("108","参谋长")
  jobs01 << JobOption.new("109","副参谋长")
  jobs01 << JobOption.new("110","参谋长助理")
  jobs01 << JobOption.new("111","军长")
  jobs01 << JobOption.new("112","副军长")
  jobs01 << JobOption.new("113","师长")
  jobs01 << JobOption.new("114","副师长")
  jobs01 << JobOption.new("115","旅长")
  jobs01 << JobOption.new("116","副旅长")
  jobs01 << JobOption.new("117","团长")
  jobs01 << JobOption.new("118","副团长")
  jobs01 << JobOption.new("119","营长")
  jobs01 << JobOption.new("120","副营长")
  jobs01 << JobOption.new("121","总队长")
  jobs01 << JobOption.new("122","副总队长")
  jobs01 << JobOption.new("123","支队长")
  jobs01 << JobOption.new("124","副支队长")
  jobs01 << JobOption.new("125","大队长")
  jobs01 << JobOption.new("126","副大队长")
  jobs01 << JobOption.new("127","中队长")
  jobs01 << JobOption.new("128","副中队长")
  jobs01 << JobOption.new("129","队长")
  jobs01 << JobOption.new("130","副队长")
  jobs01 << JobOption.new("131","舰长")
  jobs01 << JobOption.new("132","副舰长")
  jobs01 << JobOption.new("133","船长")
  jobs01 << JobOption.new("134","副船长")
  jobs01 << JobOption.new("135","部长")
  jobs01 << JobOption.new("136","副部长")
  jobs01 << JobOption.new("137","局长")
  jobs01 << JobOption.new("138","副局长")
  jobs01 << JobOption.new("139","处长")
  jobs01 << JobOption.new("140","副处长")
  jobs01 << JobOption.new("141","科长")
  jobs01 << JobOption.new("142","副科长")
  jobs01 << JobOption.new("143","所长")
  jobs01 << JobOption.new("144","副所长")
  jobs01 << JobOption.new("145","站长")
  jobs01 << JobOption.new("146","副站长")
  jobs01 << JobOption.new("147","主任")
  jobs01 << JobOption.new("148","副主任")
  jobs01 << JobOption.new("149","秘书长")
  jobs01 << JobOption.new("150","副秘书长")
  jobs01 << JobOption.new("151","台长")
  jobs01 << JobOption.new("152","副台长")

  jobs02 = JobType.new("政治主官")
  jobs02 << JobOption.new("201","政治委员")
  jobs02 << JobOption.new("202","副政治委员")
  jobs02 << JobOption.new("203","政治协理员")
  jobs02 << JobOption.new("204","政治教导员")
  jobs02 << JobOption.new("205","副政治教导员")

  jobs03 = JobType.new("其他主官")
  jobs03 << JobOption.new("301","总军事代表")
  jobs03 << JobOption.new("302","副总军事代表")
  jobs03 << JobOption.new("303","总指挥")
  jobs03 << JobOption.new("304","副总指挥")
  jobs03 << JobOption.new("305","总工程师")
  jobs03 << JobOption.new("306","副总工程师")
  jobs03 << JobOption.new("307","院长")
  jobs03 << JobOption.new("308","副院长")
  jobs03 << JobOption.new("309","校长")
  jobs03 << JobOption.new("310","副校长")

  jobs04 = JobType.new("其他干部")
  jobs04 << JobOption.new("401","参谋")
  jobs04 << JobOption.new("402","助理")
  jobs04 << JobOption.new("403","干事")
  jobs04 << JobOption.new("404","秘书")
  jobs04 << JobOption.new("405","高级工程师")
  jobs04 << JobOption.new("406","工程师")
  jobs04 << JobOption.new("407","助理工程师")
  jobs04 << JobOption.new("408","高级研究员")
  jobs04 << JobOption.new("409","研究员")
  jobs04 << JobOption.new("410","助理研究员")
  jobs04 << JobOption.new("411","法制员")
  jobs04 << JobOption.new("412","教授")
  jobs04 << JobOption.new("413","副教授")
  jobs04 << JobOption.new("414","讲师")
  jobs04 << JobOption.new("415","助教")


  OPTIONS = [jobs01,jobs02,jobs03,jobs04]
end
